﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PRO.Common;
using PRO.Config;
using PRO.Admin;

namespace web.Manage.setting
{
    public partial class services : ManageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            BaseConfigInfo config = BaseConfigs.GetBaseConfig();
            config.Transport = CVGRequest.GetFormString("txtTransport").Escape();
            config.Refunded_OR_Exchanged = CVGRequest.GetFormString("txtRefunded_OR_Exchanged").Escape();
            if (BaseConfigs.SaveConfig(config))
            {
                BaseConfigs.ResetConfig();
                Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script type='text/javascript'>alert('修改成功！');</script>");
            }
            else
                Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script type='text/javascript'>alert('修改失败！');</script>");
        }
    }
}